package com.surveillance.BO;

import java.util.List;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author
 * ghaffari
 */
public interface BOLayer<T> {
        boolean save(T myEntity);//before inserting make sure that the id is not duplicated if it's not save the object and return true otherwise restrict saving and return false
        void update(T myEntity);
        void delete(T myEntity);
        T findByID(Long myEntityID);
        List<T> findAll();
}
